﻿
namespace Unknown.Framework.Database
{
    /// <summary>
    /// 实例配置类
    /// </summary>
    public class InstanceConfiguration
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 源
        /// </summary>
        public string Source { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string Connection { get; set; }
        /// <summary>
        /// 类型属性
        /// </summary>
        public string TypeProperty { get; set; }
        /// <summary>
        /// 类型枚举
        /// </summary>
        public string TypeEnum { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public InstanceConfiguration()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="name">名称</param>
        /// <param name="source">源</param>
        /// <param name="connection">链接</param>
        /// <param name="typeProperty">类型属性</param>
        /// <param name="typeEnum">类型枚举</param>
        public InstanceConfiguration(string name, string source, string connection, string typeProperty, string typeEnum)
        {
            this.Name = name;
            this.Source = source;
            this.Connection = connection;
            this.TypeProperty = typeProperty;
            this.TypeEnum = typeEnum;
        }
    }
}
